from django.test import TestCase
from datetime import datetime
import time,random

# from utils import MyHashEncryptor as MyHash,get_timestamp_rand
import re
# # Create your tests here.
#
# num_sixteen = get_timestamp_rand()
# slug_hash = MyHash.myencryped('md5',num_sixteen)
# slug = "-".join(re.findall(r'[0-9a-f]{8}',slug_hash))
#
# from datetime import date
# print(str(date.today().year) + '/' + str(date.today().month) + '/' + str(date.today().day) + '/')
#
#
# import requests
# headers = {"Accept": "application/json", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)Chrome/87.0.4280.66 Safari/537.36"}
#
# print(requests.get("https://bootswatch.com/api/3.json", headers=headers).text)

strA = "account/signup_invitations.html"
a = re.match(r'account/signup_?[\w\d]*.html',strA).group()
print(a,type(a))